package com.hxkj.client.service;

import com.hxkj.domain.po.FreeMarker;
import com.integral.mall.file.po.SysFile;
import com.platform.common.domain.result.ResultDataStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 解析文章详情
 */
@FeignClient(name = "cms-publish-management")
public interface AnalyzeArticleServiceClient {

    /**
     * 解析文章详情
      * @param freeMarker
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/analyzeArticle/article", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultDataStruct<SysFile> analyzeArticle(@RequestBody FreeMarker freeMarker) throws Exception;


    /**
     * 文章可视化
     * @param freeMarker
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/analyzeArticle/visualizationArticle", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultDataStruct<SysFile> visualizationArticle(@RequestBody FreeMarker freeMarker) throws Exception;


}
